package com.ruoyi.project.system.video.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 视频信息对象 sys_video
 *
 * @author tao
 * @date 2024-10-28
 */
public class Video extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 视频ID
     */
    private Long id;

    /**
     * 视频名称
     */
    @Excel(name = "视频名称")
    private String name;

    /**
     * 视频储存路径
     */
    @Excel(name = "视频储存路径")
    private String url;

    /**
     * 视频时长,单位秒
     */
    @Excel(name = "视频时长,单位秒")
    private Long time;

    /**
     * 视频分组
     */
    @Excel(name = "视频分组")
    private String group;

    /**
     * 视频标签
     */
    @Excel(name = "视频标签")
    private String tag;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Long getTime() {
        return time;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getGroup() {
        return group;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getTag() {
        return tag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("url", getUrl())
                .append("time", getTime())
                .append("group", getGroup())
                .append("tag", getTag())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
